#ifndef __PATH_STACK__
#define __PATH_STACK__
#include <my_header.h>

typedef struct dirNode_s{
    char dirName[32];
    struct dirNode_s* pre;
    struct dirNode_s* next;
}dirNode_t;

typedef struct pathStack_s{
    dirNode_t *first;
    dirNode_t *last;
    int stackSize;
}pathStack_t;

//初始化
int pathStackInit(pathStack_t *ppathStack);
//入栈-----尾插
int pathStackPush(pathStack_t *ppathStack,char*dirName);
//出栈-----尾删
int pathStackPop(pathStack_t *ppathStack);
//看一下栈内容（debug）
int pathStackPrin(pathStack_t *ppathStack);


//栈弹为路径字符串
int stack_output_path(pathStack_t *pathStack,char *path);
//复制栈
int copyStack(pathStack_t *Sstack,pathStack_t *Dstack);

#endif